package myaction;

import java.util.List;
import java.util.Map;

import imp.Kcdao;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

import dao.KcdaoImp;

public class KcAction extends ActionSupport {
	public String execute()throws Exception{
		Kcdao kcdao=new KcdaoImp();
		List list=kcdao.getAll();
		Map request=(Map)ActionContext.getContext().get("request");
		request.put("list", list);
		return "success";
	}

}
